package com.atguigu.team.domain;
import com.atguigu.team.service.Status;

public class Programmer extends Employee{
    private int memberId;
    private Status status=Status.FREE;
    private Equipment equipment;
    //FREE为空闲状态
    //BUSY为已加入开发团队
    //VOCATION为正在度假
    public Programmer(){
    }
    public Programmer(Equipment equipment,int age,String name,int salary,int id){
        super(id, name, age, salary);
        this.equipment=equipment;
    }
    //set方法
    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }
    public void setStatus(Status status) {
        this.status = status;
    }
    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }
    //get方法
    public int getMemberId() {
        return memberId;
    }
    public Status getStatus() {
        return status;
    }
    public Equipment getEquipment() {
        return equipment;
    }

    @Override
    public String toString() {
        return super.toString() +"\t程序员\t"+status+"\t\t\t"+getEquipment().getDescription();
    }
    public String getDetailsForTeam(){
        return memberId+"/"+getId()+"\t"+getName()+"\t"+getAge()+"\t"+getSalary()+"\t"+"程序员";
    }
}
